{% extends "base.html" %}

{% block content %}
<div class="container">
    <h1>提交论文信息</h1>
    <div class="row">
        <div class="col-md-6">
            <form method="POST" action="{{ url_for('main.submit_thesis') }}">
                <div class="form-group mb-3">
                    <label for="title">论文题目</label>
                    <input type="text" class="form-control" id="title" name="title" required>
                </div>
                <div class="form-group mb-3">
                    <label for="description">论文描述</label>
                    <textarea class="form-control" id="description" name="description" rows="4" 
                              placeholder="请描述论文的主要内容、功能需求等"></textarea>
                </div>
                <div class="form-group mb-3">
                    <label for="programming_language">开发语言</label>
                    <select class="form-control" id="programming_language" name="programming_language" required>
                        <option value="">请选择开发语言</option>
                        <option value="Python">Python</option>
                        <option value="Java">Java</option>
                        <option value="C++">C++</option>
                        <option value="JavaScript">JavaScript</option>
                        <option value="PHP">PHP</option>
                        <option value="其他">其他</option>
                    </select>
                </div>
                <div class="form-group mb-3">
                    <label for="price">报价（元）</label>
                    <input type="number" class="form-control" id="price" name="price" min="0" step="0.01" required>
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
        </div>
    </div>
</div>
{% endblock %} 